'use strict';

const titbit = require('titbit')

process.on('SIGTERM',(sig)=>{
  console.log('捕获信号，不退出')
})

process.on('SIGINT',(sig)=>{
  console.log('还是不退出')
})


//不能捕获SIGKILL
process.on('SINKILL',(sig)=>{
  console.log('SIGKILL不管用')
 })

const app = titbit({
  debug:true
})

app.get('/',async c => {
  c.res.body = 'ok'
})

app.run(3001)
